<?php
//创建goods商品表对应的model模型类
//创建model与创建controller控制器的具体代码一致
//不过就是把Controller的字眼换成Model即可

//命名空间
namespace  Model;
use Think\Model;

//父类Model:  ThinkPHP/Library/Think/Model.class.php
//控制器父类:  ThinkPHP/Library/Think/Controller.class.php

class GoodsModel extends Model{

    function getHotInfo(){}
    function getNewInfo(){}
}
